package com.lms.service.impl;

import com.lms.mapper.BookCategoryMapper;
import com.lms.pojo.BookCategory;
import com.lms.service.BookCategoryService;

public class BookCategoryServiceImpl implements BookCategoryService {

    private BookCategoryMapper bookCategoryMapper;

    public void setBookCategoryMapper(BookCategoryMapper bookCategoryMapper) {
        this.bookCategoryMapper = bookCategoryMapper;
    }

    public int deleteByPrimaryKey(Integer categoryId) {
        return bookCategoryMapper.deleteByPrimaryKey(categoryId);
    }

    public int insert(BookCategory record) {
        return bookCategoryMapper.insert(record);
    }

    public int insertSelective(BookCategory record) {
        return bookCategoryMapper.insertSelective(record);
    }

    public BookCategory selectByPrimaryKey(Integer categoryId) {
        return bookCategoryMapper.selectByPrimaryKey(categoryId);
    }

    public int updateByPrimaryKeySelective(BookCategory record) {
        return bookCategoryMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(BookCategory record) {
        return bookCategoryMapper.updateByPrimaryKey(record);
    }
}
